package xcmg.device.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(url = "${baidu.trans.addr}", name = "BaiduTransClient")
public interface BaiduTransClient {


    @RequestMapping(value = "/translate", method = RequestMethod.GET)
    Map getMaterialsTrans(@RequestParam("q") String q, @RequestParam("from") String from, @RequestParam("to") String to,
                           @RequestParam("appid") String appid, @RequestParam("salt") String salt, @RequestParam("sign") String sign);


}
